/**
	 * @author Benjamin Zwanzger
	 * @version v1.0
	 * @date 27.03.2013
	 * 
	 */


public class Postfix {
	
	private String str;
	//private String[] splitResult;
	Stack<String> stack = new Stack<String>();
	
	
	public void setRechnung(String str){
		this.str = str;
	}
	
	public String getRechnung(){
		return str;
	}
	
	public String[] getSplittedString(){
		String[] splitResult = getRechnung().split(" "); // splitten an den Leerzeichen
		
		return splitResult;
		}
	
	
	public void toStack(){
		for (int i =0; i <= getSplittedString().length -1; i++){
			stack.push(getSplittedString()[i]);
			System.out.println(stack.toString());
		}
	}
	public void calculate(){
		for(int i = 0; i <= stack.size()-2; i++){
			if (stack.topOf()== "+"){}
		}
	}
	
}
